package com.hch.maker.cli.command;

import cn.hutool.core.io.FileUtil;
import com.hch.maker.meta.Meta;
import picocli.CommandLine;

import java.io.File;
import java.util.List;

/**
 * @author 86134
 * @version 1.0
 * @description TODO
 * @date 2024/7/24 12:52
 */

@CommandLine.Command(name = "list", mixinStandardHelpOptions = true)
public class ListCommand implements Runnable{


    @Override
    public void run() {

        String path = System.getProperty("user.dir") + File.separator + "hch-generator-basic";
        File parentFile = new File(path).getParentFile();
        String absolutePath = new File(parentFile, "yuzi-generator-dmeo-projects/acm-template").getAbsolutePath();
        List<File> files = FileUtil.loopFiles(absolutePath);
        for (File file : files) {
            System.out.println(file);
        }
    }
}
